let allItemList = [{
    "auditStatus": 1,
    "auditTime": "2022-09-21 15:43:12.0",
    "optTime": "2022-09-21 15:43:12.0",
    "version": 1,
    "memo": "审核通过",
    "productName": "3-4人餐",
    "categoryName": "美食·地方菜·其他地方菜",
    "accountName": "杨再斌",
    "imgUrl": "[\"https://sf1-dycdn-tos.pstatp.com/obj/tos-cn-i-lgni0yg6nh/9698be28c847438a806421926fe6ab10\"]",
    "saleStartTime": "2022-09-21 13:44:57.0",
    "saleEndTime": "2022-10-31 13:44:57.0",
    "useStartTime": "2022-10-31 23:59:59.0",
    "useEndTime": "2022-09-21 00:00:00.0",
    "salePrice": 8800,
    "originPrice": 26800,
    "poiList": [{
        "name": "新贝乐意大利分享餐厅(苏宁广场店)",
        "address": "江苏省无锡市梁溪区人民中路111号无锡苏宁广场第6F层第605B号",
        "gdId": null,
        "outId": "188578",
        "dyId": "7039906348372346888"
    }],
    "info": "{\"EntrySchema\":\"{\\\"app_id\\\":\\\"tta73ed1833805f515\\\",\\\"params\\\":\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"856266\\\\\\\",\\\\\\\"idSign\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"dyId\\\\\\\":\\\\\\\"1302553\\\\\\\"}\\\",\\\"path\\\":\\\"pages/home/detail\\\"}\",\"can_no_use_date\":\"{\\\"enable\\\":true}\",\"rec_person_num_max\":\"1\",\"RefundPolicy\":\"1\",\"free_pack\":\"true\",\"use_time\":\"{\\\"use_time_type\\\":2,\\\"time_period_list\\\":[{\\\"use_start_time\\\":\\\"11:00:58\\\",\\\"use_end_time\\\":\\\"22:00:58\\\",\\\"end_time_is_next_day\\\":false}]}\",\"Images\":\"[\\\"https://sf1-dycdn-tos.pstatp.com/obj/tos-cn-i-lgni0yg6nh/9698be28c847438a806421926fe6ab10\\\"]\",\"appointment\":\"{\\\"need_appointment\\\":false}\",\"Notification\":\"[{\\\"title\\\":\\\"预约方式\\\",\\\"content\\\":\\\"1、无需预约，高峰期需等位\\\\n2、该团购产品不支持外卖\\\"},{\\\"title\\\":\\\"营业时间\\\",\\\"content\\\":\\\"1、周一至周日：11：00-22：00\\\"},{\\\"title\\\":\\\"使用规则\\\",\\\"content\\\":\\\"1、仅限堂食\\\\n2、周末节假日适用不加价\\\\n3、本套餐不可叠加使用\\\\n4、活动不可同时享受店里其他优惠活动，超出套餐内容费用，按店内实际收费另付\\\\n5、如部分菜品因时令或其他不可抗因素导致无法提供，商家将用等价菜品替换\\\"}]\",\"superimposed_discounts\":\"false\",\"SupplierExtIdList\":\"[\\\"227100\\\"]\",\"trade_url\":\"{\\\"app_id\\\":\\\"tta73ed1833805f515\\\",\\\"params\\\":\\\"{\\\\\\\"is_phone_necessary\\\\\\\":true,\\\\\\\"min_limits\\\\\\\":1,\\\\\\\"id\\\\\\\":\\\\\\\"856266\\\\\\\",\\\\\\\"use_template\\\\\\\":true,\\\\\\\"idSign\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"dyId\\\\\\\":\\\\\\\"1302553\\\\\\\"}\\\",\\\"path\\\":\\\"pages/home/detail\\\"}\",\"EntryType\":\"2\",\"rec_person_num\":\"1\",\"show_channel\":\"1\",\"OrderValidEnd\":\"1667231999\",\"OrderValidStart\":\"1663689600\",\"DateRule\":\"{\\\"unavailable_date\\\":{\\\"date_list\\\":[],\\\"weekday_list\\\":[],\\\"not_available_on_holidays\\\":false}}\",\"SubTitle\":\"过期退|随时退|免预约\",\"private_room\":\"false\",\"image_list\":\"[{\\\"url\\\":\\\"https://p3-sign.douyinpic.com/obj/tos-cn-i-lgni0yg6nh/9698be28c847438a806421926fe6ab10?x-expires=1663765200\\\\u0026x-signature=3W89dyDLBykm%2FdTzgH5hGx9UhaE%3D\\\\u0026from=709197913\\\"}]\",\"use_date\":\"{\\\"use_date_type\\\":1,\\\"use_start_date\\\":\\\"2022-09-21\\\",\\\"use_end_date\\\":\\\"2022-10-31\\\"}\"}",
    "productType": 1,
    "notification": "[{\"title\":\"预约方式\",\"content\":\"1、无需预约，高峰期需等位\\n2、该团购产品不支持外卖\"},{\"title\":\"营业时间\",\"content\":\"1、周一至周日：11：00-22：00\"},{\"title\":\"使用规则\",\"content\":\"1、仅限堂食\\n2、周末节假日适用不加价\\n3、本套餐不可叠加使用\\n4、活动不可同时享受店里其他优惠活动，超出套餐内容费用，按店内实际收费另付\\n5、如部分菜品因时令或其他不可抗因素导致无法提供，商家将用等价菜品替换\"}]",
    "appointment": "{\"need_appointment\":false}",
    "fee": 250,
    "dateRule": "{\"unavailable_date\":{\"date_list\":[],\"weekday_list\":[],\"not_available_on_holidays\":false}}"
}]
let newInfo = JSON.parse(allItemList[0].info)

// console.log(newInfo);
// function transferChinese(keyWord) {
//     if (keyWord == 'free_pack') {
//         return '是否可以打包'
//     }
//     if (keyWord == 'rec_person_num_max') {
//         return '最多使用人数'
//     } else {
//         return 0
//     }
// }

data(){
    return {
        dynamicArr : [] //动态数据
    }
}

getArr(JSON.parse(item.info)) //数据处理函数
methods: {
    getArr(newInfo) {
        this.dynamicArr=[]
        for (let key in newInfo) {
            if (key == 'free_pack') {
                this.dynamicArr.push({
                    chinese: '是否可以打包',
                    content: newInfo[key] ? '是':'否'
                })
            }
            if (key == 'rec_person_num_max') {
                dynamicArr.push({
                    chinese: '最多使用人数',
                    content: newInfo[key]
                })
            }
        }
        // console.log(dynamicArr);
    }
}

getArr(newInfo)
// let chinese = transferChinese('free_pack')
// 把info拿下来 然后对info进行处理 处理成 中文对应：1的形式